#ifndef CONFIGURATION_H_
#define CONFIGURATION_H_

#include <string>
#include <vector>

#include "Poco/Util/IniFileConfiguration.h"
#include "Poco/DateTime.h"
#include "Poco/DateTimeParser.h"
#include "Market.h"

class Configuration : public Poco::Util::IniFileConfiguration
{
public:

	int USER_ACCOUNT;
	int ENERGY_VALUE;
	string SAYA_ON;
	int SAYA_BUYING;
	int LOGGER_CONSOLE_PRIORITY;
	int LOGGER_FILE_PRIORITY;
	vector<Events*> events;

	Configuration();
	Configuration(std::istream& istr);
	Configuration(const std::string& path);
	void Construct();

	void readNcreateCreate();
	void readNcreateConsume();
	void readNcreateSell();
	void readNcreateBuy();
	void readNcreateUserReport();
	void readNcreateActivityReport();
	void readNcreateProfitReport();
	void readNcreateEnergyReport();
	void readNcreateAccountReport();

	virtual ~Configuration();
};

#endif /*CONFIGURATION_H_*/
